﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entity.IRepository.Project;
using Entity.ProjectEnt;
using ZFine.Data;

namespace Logic.Repository.Project
{
    public class SalaryRepository : RepositoryBase<SalaryEntity>, ISalaryRepository
    {
        public List<SalaryEntity> FindList(string strSql)
        {
            return dbcontext.Database.SqlQuery<SalaryEntity>(strSql).ToList<SalaryEntity>();
        }

        public List<SalaryResult> GetSalaryList(string strSql)
        {
            var result= dbcontext.Database.SqlQuery<SalaryResult>(strSql).ToList<SalaryResult>();
            return result;
        }

        public SalaryResult GetSalaryListF(string strSql)
        {
            var result = dbcontext.Database.SqlQuery<SalaryResult>(strSql).FirstOrDefault();
            return result;
        }
    }
}
